//Chip type               : ATmega1284P
//AVR Core Clock frequency: 8.000000 MHz
//Memory model            : Small
//External RAM size       : 0
//Data Stack size         : 4096

#include <gpdr.h>
#include <lcd.h>

// Declare your global variables here

volatile unsigned char vini_buffer_full = 0;
volatile unsigned char full_messages = 1;
volatile unsigned char lcd_present = 0;
volatile unsigned char gps_present = 0;
volatile unsigned char sim_present = 0;
volatile unsigned int sim_status = 0;
volatile unsigned char sim_ip[16] = {' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', '\0'};

void main(void)
{
init_ports();

init_timers();

init_interrupts();

init_comparator();

init_ADC();

init_TWI();

init_USB();

#asm("sei")

init_LCD();

init_GPS();

init_SIM();

//sample_adc();

while (1)
    {
    wait_sample_period();
    }
}
